class ServiceInformationsController < ApplicationController
  def index
    @service_informations = ServiceInformation.all
  end

  def show
    @service_information = ServiceInformation.find(params[:id])
  end

  def new
    @service_information = ServiceInformation.new
  end

  def create
    @service_information = ServiceInformation.new(params[:service_information])
    if @service_information.save
      redirect_to @service_information, :notice => "Successfully created service information."
    else
      render :action => 'new'
    end
  end

  def edit
    @service_information = ServiceInformation.find(params[:id])
  end

  def update
    @service_information = ServiceInformation.find(params[:id])
    if @service_information.update_attributes(params[:service_information])
      redirect_to @service_information, :notice  => "Successfully updated service information."
    else
      render :action => 'edit'
    end
  end

  def destroy
    @service_information = ServiceInformation.find(params[:id])
    @service_information.destroy
    redirect_to service_informations_url, :notice => "Successfully destroyed service information."
  end
end
